package com.mairuide.platgroup;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.mairuide._frame.base.BaseModel;

/**
 * 平台部门表
 * 
 * @author mh
 *
 */
@Entity
@Table(name = "tb_plat_group")
public class PlatGroup extends BaseModel {
	/**
	 * 主键:部门id
	 */
	@Id
	@Column(name = "group_id")
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "plat_group")
	@SequenceGenerator(name = "plat_group", sequenceName = "SEQ_PLAT_GROUP",allocationSize=1)
	private Integer groupId;

	/**
	 * 部门名称
	 */
	@Column(name = "group_name")
	private String groupName;

	/**
	 * 父级部门ID
	 */
	@Column(name = "parent_group_id")
	private Integer parentGroupId;

	/**
	 * 部门编码
	 */
	@Column(name = "group_code")
	private String groupCode;

	/**
	 * 部门层级路径(前后英文逗号分割)
	 */
	@Column(name = "group_path")
	private String groupPath;

	public Integer getGroupId() {
		return groupId;
	}

	public void setGroupId(Integer groupId) {
		this.groupId = groupId;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public Integer getParentGroupId() {
		return parentGroupId;
	}

	public void setParentGroupId(Integer parentGroupId) {
		this.parentGroupId = parentGroupId;
	}

	public String getGroupCode() {
		return groupCode;
	}

	public void setGroupCode(String groupCode) {
		this.groupCode = groupCode;
	}

	public String getGroupPath() {
		return groupPath;
	}

	public void setGroupPath(String groupPath) {
		this.groupPath = groupPath;
	}

}
